package scalab.filters.mappers

/**
* Asserts that products of the mapper are soft dependencies.
*/

trait Softener extends scalab.core.component.Mapper{
	import scalab.core.dependencies.{Dependency, SoftDependency}
	import scalab.caches.NoCache
	setCache(NoCache())
	override def map(d: Dependency): Dependency = SoftDependency(d)
}

object Softener{
	def apply(n: String): Softener = new Softener{
		val name: String = n
	}
	def apply(): Softener = apply("Softener")
}
